.musicListContent {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #f5f5f5;
  padding: 1px;

  .searchSection {
    flex-shrink: 0;
    margin-bottom: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

    .searchForm {
      display: flex;
      align-items: center;
      gap: 16px;

      :global {
        .ant-form-item {
          margin: 0;
          flex: 1;
        }

        .button-group {
          display: flex;
          gap: 16px;
          flex-shrink: 0;

          .ant-btn {
            min-width: 88px;
          }
        }
      }
    }

    .searchResult {
      margin-top: 16px;
      color: #666;

      span {
        color: #1890ff;
        font-weight: 500;
        margin: 0 4px;
      }
    }
  }

  .musicListWrapper {
    flex: 1;
    overflow-y: auto;
    margin: 0 -12px;
    padding: 0 12px;
    position: relative;

    .musicList {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }

    .loadingMore {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px 0;
      color: #666;
      gap: 8px;

      .ant-spin {
        margin-right: 8px;
      }
    }

    .noMore {
      text-align: center;
      padding: 24px 0;
      color: #999;
      font-size: 14px;
    }
  }

  .musicCard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    height: 96px;

    &:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .coverWrapper {
      width: 72px;
      height: 72px;
      border-radius: 4px;
      overflow: hidden;
      flex-shrink: 0;
      background: #f0f0f0;

      .cover {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .defaultCover {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: 600;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
      }
    }

    .contentWrapper {
      margin-right: 12px;
      overflow: hidden;

      .header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;

        .title {
          margin: 0;
          font-size: 16px;
          font-weight: 500;
          color: #333;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }

        .icon {
          font-size: 14px;
          color: #8c8c8c;
        }
      }

      .infoList {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #8c8c8c;
        font-size: 12px;

        .infoItem {
          display: flex;
          align-items: center;
          gap: 4px;

          .icon {
            font-size: 12px;
          }
        }
      }
    }
  }
}

@media (max-width: 768px) {
  .musicListContent {
    padding: 1px;

    .searchSection {
      padding: 16px;
      margin-bottom: 16px;

      .searchForm {
        flex-direction: column;
        gap: 16px;

        :global {
          .ant-form-item {
            width: 100%;
            margin: 0;
          }

          .button-group {
            display: flex;
            gap: 16px;
            width: 100%;
            margin-left: 0;

            .ant-btn {
              flex: 1;
              height: 36px;
            }
          }

          .ant-input {
            width: 100%;
            height: 36px;
          }
        }
      }
    }

    .musicListWrapper {
      margin: 0 -8px;
      padding: 0 8px;

      .musicList {
        grid-template-columns: 1fr;
        gap: 12px;
      }

      .loadingMore, .noMore {
        padding: 16px 0;
      }
    }

    .musicCard {
      height: 96px;
      padding: 12px;

      .coverWrapper {
        width: 72px;
        height: 72px;
      }

      .contentWrapper {
        margin-left: 12px;
      }
    }
  }
}

// 多行文本截断混入
.line-clamp(@lines) {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: @lines;
  /* autoprefixer: ignore next */
  -webkit-box-orient: vertical;
  display: -moz-box;
  -moz-line-clamp: @lines;
  -moz-box-orient: vertical;
  display: box;
  line-clamp: @lines;
  box-orient: vertical;
} 